package org.farm2.skc.dto.web;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.farm2.skc.dto.SkcTagDto;

import java.util.List;


@Data
@NoArgsConstructor
public class WebKnowDto {

    private String id;
    @NotBlank(message = "{farm2.validate.template.notnull}")
    @Size(min = 0, max = 256, message = "{farm2.validate.template.size}")
    private String title;
    @NotBlank(message = "{farm2.validate.template.notnull}")
    private String text;
    @Size(min = 0, max = 512, message = "{farm2.validate.template.size}")
    private String docdescribe;
    private List<WebTagDto> tags;
    private String author;
    private String pubtime;
}